package com.example.freewood.smartsecurity_manager.adapter;

import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Toast;

import com.example.freewood.smartsecurity_manager.R;

import java.util.ArrayList;

/**
 * Created by FreeWood on 16/4/5.
 */
public class DeviceAdapter extends BaseAdapter {

    private Context context;
    private ArrayList list;

    public DeviceAdapter(Context context,ArrayList list){
        this.context=context;
        this.list=list;
    }

    @Override
    public int getCount() {
        return 10;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        LayoutInflater inflater= LayoutInflater.from(context);
        convertView=(View) inflater.inflate(R.layout.device_item, null);
        return convertView;
    }
}
